<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>档案信息</title>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta
            name="viewport"
            content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
    />
    <link rel="stylesheet" href="../js/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../style/admin.css" media="all"/>
    <link rel="stylesheet" href="../style/home.css" media="all"/>
    <script src="../js/layui/layui.js"></script>
    <script>
        /^http(s*):\/\//.test(location.href) ||
        alert('请先部署到 localhost 下再访问');
    </script>
    <style type="text/css">
        .layui-card-header {
            background: #C5D0E4;
            padding: 5px 5px;
            font-size: 14px;
            color: #2f363c;
            font-weight: 500;
            border-left: 5px solid #2f363c;
            border-bottom: 0;
        }

        .layui-form-select dl {
            font-size: 14px
        }
    </style>
</head>
<body>
<div style="margin: 5px; height: 100%;">
    <div class="layui-card" style="height: 50%; margin-bottom: 0; padding:0" id="fileData">
        <div class="layui-card-header">
            <div id="title">案卷目录</div>
            <div class="layui-layout-right" style="margin: 0; padding-top: 2px; font-size: 12px;">
                <form class="layui-form layui-row" action="">
                    <div class="layui-input-inline" style=" margin-right: 10px;">
                        <div class="layui-btn-group">
                            <button type="button" class="layui-btn  layui-bg-blue layui-btn-sm">
                                <i class="layui-icon layui-icon-file-b"></i>
                                新增
                            </button>
                            <button type="button" class="layui-btn  layui-bg-blue layui-btn-sm">
                                <i class="layui-icon layui-icon-add-1"></i>
                                批量新增
                            </button>
                            <button type="button" class="layui-btn  layui-bg-blue layui-btn-sm">
                                <i class="layui-icon layui-icon-edit"></i>
                                批量修改
                            </button>
                        </div>
                    </div>
                    <div class="layui-input-inline" style="width: 300px; margin-right: 10px;">
                        <input type="text" name="value" lay-verify="value" autocomplete="off"
                               placeholder="快速检索" class="layui-input">
                    </div>
                    <div class="layui-input-inline" style="padding: 0!important; margin-right: 5px;">
                        <button type="submit" class="layui-btn layui-bg-cyan layui-btn-sm" lay-submit=""
                                lay-filter="fileSearch">
                            <i class="layui-icon layui-icon-search"></i>检索
                        </button>
                    </div>
                </form>
            </div>
        </div>
        <div class="layui-card-body" style="padding: 5px 0;">
            <table id="fileDataTable" lay-filter="fileDataTable"></table>
        </div>
    </div>

    <div class="layui-card" style="height: 50%" id="recordData">
        <div class="layui-card-header">
            <div>卷内目录</div>
            <div class="layui-layout-right" style="margin: 0; padding-top: 2px; font-size: 12px;">
                <form class="layui-form layui-row" action="">
                    <div class="layui-input-inline" style="width: 300px; margin-right: 10px;">
                        <input type="text" name="value" lay-verify="value" autocomplete="off"
                               placeholder="快速检索" class="layui-input">
                    </div>
                    <div class="layui-input-inline" style="padding: 0!important; margin-right: 5px;">
                        <button type="submit" class="layui-btn layui-bg-cyan layui-btn-sm" lay-submit=""
                                lay-filter="recordSearch">
                            <i class="layui-icon layui-icon-search"></i>检索
                        </button>
                    </div>
                </form>
            </div>
        </div>
        <div class="layui-card-body" style="padding: 5px 0;">
            <table id="recordDataTable" lay-filter="recordDataTable"></table>
        </div>
    </div>
</div>
</body>
<script id="filesOperationBar" type="text/html">
    <a lay-filter="edit" href="#" lay-event="edit">
        <i class="layui-icon layui-icon-edit p3" title="编辑"></i>
    </a>
    <a lay-filter="del" href="#" lay-event="del">
        <i class="layui-icon layui-icon-delete p3" title="删除"></i>
    </a>
    <a lay-filter="changelog" href="#" lay-event="changelog">
        <i class="layui-icon layui-icon-form p3" title="历史追溯"></i>
    </a>
</script>
<script id="recordOperationBar" type="text/html">
    <a lay-filter="edit" href="#" lay-event="edit">
        <i class="layui-icon layui-icon-edit p3" title="编辑"></i>
    </a>
    <a lay-filter="del" href="#" lay-event="del">
        <i class="layui-icon layui-icon-delete p3" title="删除"></i>
    </a>
    <a lay-filter="viewDigiFiles" href="#" lay-event="viewDigiFiles">
        <i class="layui-icon layui-icon-read p3" title="浏览电子文件"></i>
    </a>
    <a lay-filter="changelog" href="#" lay-event="changelog">
        <i class="layui-icon layui-icon-form p3" title="历史追溯"></i>
    </a>
</script>
<script id="entityStatusTpl" type="text/html">
    {{#  if(d.entitystatus=="0"){ }}
    未归还
    {{#  } }}
    {{#  if(d.entitystatus=="1"){ }}
    已归还
    {{#  } }}
</script>
<script id="statusTpl" type="text/html">
    {{#  if(d.status=="1"){ }}
    <i class="layui-icon layui-icon-ok"></i>
    {{#  } }}
</script>
<script id="viewTpl" type="text/html">
    {{#  if(d.digi=="1"){ }}
    <i class="layui-icon layui-icon-ok"></i>
    {{#  } }}
</script>
<script>
    let pid = "[[${pid}]]";
    let tid = "[[${tid}]]";
    let classId = "[[${classId}]]";
</script>
<script src="../js/lib/common.js"></script>
<script type="text/javascript" src="../js/lib/watermark.js"></script>
<script>
    loadScript("../js/modules/archives/archivesFile.js");
</script>
</html>